<template>
  <div>message的值:{{ message }}</div>
  <div>obj.message的值:{{ obj.message }}</div>
  <div>{{ obj.desc }}</div>
</template>
<script setup>
import { reactive, toRefs } from 'vue'
const obj = reactive({ 
  message: '盛年不重来，一日难再晨',
  desc:'这是修改前的值desc'
 })
let { message,desc} = toRefs(obj)

setTimeout(() => {
  message.value = '及时当勉励，岁月不待人',
  desc.value = "这是修改之后的值"
}, 2000)
</script>
